# coding:utf-8
# *******************************************************************
# * Copyright 2021-2080 evilbinary
# * 作者: evilbinary on 01/01/20
# * 邮箱: rootdebug@163.com
# ********************************************************************
import os

Import('env')

env.Library('gui', [
    'screen.c',
    'event.c',
    '../../libs/libc/libc.a',
],CFLAGS='$CFLAGS -Ilibs/include/c/')

env.Library('image', [
    'image.c',
    'jpeg_decoder.c',
    'png_decoder.c',
    '../../libs/libc/libc.a',
    '../libjpeg/libjpeg.a',
    '../libpng/libpng.a',
],CFLAGS='$CFLAGS -Ilibs/include/c/ -Iapp/libjpeg -Iapp/libpng')

# env.Objcopy('gui.elf','gui',OBJCOPYFLAGS='-S --strip-all')
#env.Objcopy('gui.dbg','gui.elf',OBJCOPYFLAGS='--only-keep-debug')